home *** CD-ROM | disk | FTP | other *** search
- >What square? There are no squares in a DOOM map AFAIK. You can easily get
- >hold of all the lines enclosing a sector, though. Then you only have to
- >check if you cross any of them. If you don't there's no problem, if you do
- >a further check will have to be done to see if the line you crossed was
- >actually a wall.
- I don't have the spec file here, but I'm almost sure there is an additional
- map in the WAD, which indicates what is where. And it is separated into
- squares. Of course, it contains information which is already in the real map
- and BSP, but the advantage here is that from your position, by just bit
- shifting, you can find the square you want and know all the objects inside
- it. Its structure is very much simpler than BSP. I'll check tonight.
-
- >Not very difficult in principle, but the checks against the lines could take
- >quite a bit of time. Do you remember reading anything about the sector
- >breakdown in DOOM? Are they always convex perhaps?
- ??? Yes, ssectors are always convex. That's why you don't have to bother
- about the order in which you draw its walls. Did I misundertand your question?
-
- Bye for now,
- Bertrand
- +-----------------------------------------------------------+
- |Bertrand Le Roy |A Darwinian theory of Gravitation: |
- |bleroy@ccr.jussieu.fr|In the beginning, mature apples fell|
- |tel. 44.27.72.95 |in all directions. But only the trees|
- |fax. 44.27.72.87 |whose apples fell down have survived.|
- +-----------------------------------------------------------+
- |Laboratoire de Gravitation et Cosmologie Relativistes |
- |Universite Pierre et Marie Curie, tour 22-12, 4e etage |
- |4, place Jussieu, 75252 Paris Cedex 05 |
- +-----------------------------------------------------------+
-
-